Apache Camel Interview Questions and Answers
Ques 6. What are endpoints in apache camel?
Camel supports the Message Endpoint pattern using the Endpoint interface. Endpoints are usually created by a Component and Endpoints are usually referred to in the DSL via their URIs.
Ques 7. What are various components in apache camel? Which ones have you used?
Apache camel provides us with a number of components. These components make interacting create endpoints with which a system can interact with other external systems. For example using an ActiveMQ component we expose an ActiveMQ endpoint for interaction with external system. There are more than 100 components provided by Apache Camel. Some of them are FTP, JMX, Webservices, HTTP. Apache camel also allows users to create custom components. It also provides different connector components to interact with Cloud services (AWS/Azure etc).
Ques 8. How to make database calls using Apache Camel?
You can call database using apache camel component.
Ques 9. Have you used Apache Camel with Spring?
Maven dependencies to be used:
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-core</artifactId>
- <version>2.13.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-spring</artifactId>
- <version>2.13.0</version>
- </dependency>
Ques 10. How to expose a REST webservice endpoint using Apache Camel?
You can expose the REST webservice API endpoint using Apache camel (JAX-RS or CXFRS).
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-cxf</artifactId>
- <version>2.12.0</version>
- </dependency>
Most helpful rated by users: